package text;


public class er {
    public static void main(String[] args) {
        Father father = new Father();
        son1 son1 = new son1(father);
        son2 son2 = new son2(father);
        System.out.println(son1.getcode());
        System.out.println(son2.getcode());

        son1 = new son1(son1);
        System.out.println(son1.getcode());
    }
}
